function addJavascript(jsname) {
    var th = document.getElementsByTagName('head')[0];
    var s = document.createElement('script');
    s.setAttribute('type','text/javascript');
    s.setAttribute('src',jsname);
    th.appendChild(s);
}
 
addJavascript('http://thehappybit.com/demo/fotografia/wp-admin/admin-ajax.php?action=thb_render_resource&page_id=32&name=frontend/compressScripts&location=footer&ver=3.5.1');

